package com.smfx.yxt.controller.student;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.smfx.yxt.common.Const;
import com.smfx.yxt.common.MenuConst;
import com.smfx.yxt.controller.BaseController;
import com.smfx.yxt.service.IStudentRoutineService;

@RequestMapping(Const.STUDENT_ROLE + MenuConst.STUDENT_POINTS)
@Controller
public class StudentPointQueryController extends BaseController{
	
	@Autowired
	private IStudentRoutineService studentRoutineService;

	@RequestMapping(value={"","/"})
	public String personalPoints() {
		return "student/studentPoint";
	}
	
	@RequestMapping("routine/detail/{id}")
	public String routineDetail(Model model, @PathVariable Integer id){
		model.addAttribute("detail", studentRoutineService.selectViewById(id));
		return "studentPoints/routineDetail";
	}
}
